package com.tarim.streetdance.service;

import com.tarim.streetdance.model.Video;
import com.tarim.streetdance.model.VideoWithBLOBs;
import com.tarim.streetdance.vo.Criteria;
import com.tarim.streetdance.vo.PageBean;

import java.util.List;
import java.util.Map;

public interface VideoService {
    //新增
    int insertSelective(VideoWithBLOBs videoWithBLOBs);

    //根据类别查视频
    PageBean<VideoWithBLOBs> selectVideoByType(PageBean<VideoWithBLOBs> pageBean, VideoWithBLOBs record);

    //查询视频带评论
    VideoWithBLOBs selectByPrimaryKey(Long id);

    int updateForDelete(Video record);

    //点赞数量+1
    int updateForAddLikenum(Video record);
    //观看数量+1
    int updateForAddViewsnum(Video record);
    //收藏数量+1
    int updateForAddCollectnum(Video record);

    List<Map> selectStateNum();

    PageBean<VideoWithBLOBs> selectVideoByUserId(PageBean<VideoWithBLOBs> pageBean, VideoWithBLOBs record);

    PageBean<VideoWithBLOBs> selectVideoByCondition(PageBean<VideoWithBLOBs> pageBean, Criteria criteria);

    int updateByPrimaryKeySelective(VideoWithBLOBs video);
}